﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="dsTavoGrupo" targetNamespace="http://tempuri.org/dsTavoGrupo.xsd" xmlns:mstns="http://tempuri.org/dsTavoGrupo.xsd" xmlns="http://tempuri.org/dsTavoGrupo.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="conn" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="conn (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.NutriFast.Properties.Settings.GlobalReference.Default.conn" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GroupTableAdapter" GeneratorDataComponentClassName="GroupTableAdapter" Name="Group" UserDataComponentName="GroupTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="conn (Settings)" DbObjectName="[Nutri-Fast].dbo.[Group]" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[Group] WHERE (([gId] = @Original_gId) AND ([gName] = @Original_gName))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_gId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_gName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[Group] ([gId], [gName]) VALUES (@gId, @gName);
SELECT gId, gName FROM [Group] WHERE (gId = @gId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@gId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@gName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT gId, gName FROM dbo.[Group]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[Group] SET [gId] = @gId, [gName] = @gName WHERE (([gId] = @Original_gId) AND ([gName] = @Original_gName));
SELECT gId, gName FROM [Group] WHERE (gId = @gId)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@gId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gId" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@gName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_gId" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="gId" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_gName" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="gName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="gId" DataSetColumn="gId" />
              <Mapping SourceColumn="gName" DataSetColumn="gName" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="dsTavoGrupo" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="dsTavoGrupo" msprop:Generator_UserDSName="dsTavoGrupo">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Group" msprop:Generator_TableClassName="GroupDataTable" msprop:Generator_TableVarName="tableGroup" msprop:Generator_TablePropName="Group" msprop:Generator_RowDeletingName="GroupRowDeleting" msprop:Generator_UserTableName="Group" msprop:Generator_RowChangingName="GroupRowChanging" msprop:Generator_RowEvHandlerName="GroupRowChangeEventHandler" msprop:Generator_RowDeletedName="GroupRowDeleted" msprop:Generator_RowEvArgName="GroupRowChangeEvent" msprop:Generator_RowChangedName="GroupRowChanged" msprop:Generator_RowClassName="GroupRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="gId" msprop:Generator_ColumnVarNameInTable="columngId" msprop:Generator_ColumnPropNameInRow="gId" msprop:Generator_ColumnPropNameInTable="gIdColumn" msprop:Generator_UserColumnName="gId" type="xs:int" />
              <xs:element name="gName" msprop:Generator_ColumnVarNameInTable="columngName" msprop:Generator_ColumnPropNameInRow="gName" msprop:Generator_ColumnPropNameInTable="gNameColumn" msprop:Generator_UserColumnName="gName">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="30" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Group" />
      <xs:field xpath="mstns:gId" />
    </xs:unique>
  </xs:element>
</xs:schema>